package com.ruoyi.guarantee.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.guarantee.mapper.BAgreementPositionMapper;
import com.ruoyi.guarantee.domain.BAgreementPosition;
import com.ruoyi.guarantee.service.IBAgreementPositionService;

/**
 * 履约一键导出Service业务层处理
 *
 * @author ruoyi
 * @date 2024-12-04
 */
@Service
public class BAgreementPositionServiceImpl implements IBAgreementPositionService
{
    @Autowired
    private BAgreementPositionMapper bAgreementPositionMapper;

    /**
     * 查询履约一键导出
     *
     * @param id 履约一键导出主键
     * @return 履约一键导出
     */
    @Override
    public BAgreementPosition selectBAgreementPositionById(Long id)
    {
        return bAgreementPositionMapper.selectBAgreementPositionById(id);
    }

    /**
     * 查询履约一键导出列表
     *
     * @param bAgreementPosition 履约一键导出
     * @return 履约一键导出
     */
    @Override
    public List<BAgreementPosition> selectBAgreementPositionList(BAgreementPosition bAgreementPosition)
    {
        return bAgreementPositionMapper.selectBAgreementPositionList(bAgreementPosition);
    }

    /**
     * 新增履约一键导出
     *
     * @param bAgreementPosition 履约一键导出
     * @return 结果
     */
    @Override
    public int insertBAgreementPosition(BAgreementPosition bAgreementPosition)
    {
        return bAgreementPositionMapper.insertBAgreementPosition(bAgreementPosition);
    }

    /**
     * 修改履约一键导出
     *
     * @param bAgreementPosition 履约一键导出
     * @return 结果
     */
    @Override
    public int updateBAgreementPosition(BAgreementPosition bAgreementPosition)
    {
        return bAgreementPositionMapper.updateBAgreementPosition(bAgreementPosition);
    }

    /**
     * 批量删除履约一键导出
     *
     * @param ids 需要删除的履约一键导出主键
     * @return 结果
     */
    @Override
    public int deleteBAgreementPositionByIds(Long[] ids)
    {
        return bAgreementPositionMapper.deleteBAgreementPositionByIds(ids);
    }

    /**
     * 删除履约一键导出信息
     *
     * @param id 履约一键导出主键
     * @return 结果
     */
    @Override
    public int deleteBAgreementPositionById(Long id)
    {
        return bAgreementPositionMapper.deleteBAgreementPositionById(id);
    }
}
